home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-170 dbase 10 for windows / 1.ima / DOC.PAK / DOSAPPS.TXT < prev    next >
Text File  |  1993-07-26  |  6KB  |  215 lines

  1.     Copyright (c) 1991-1993 Borland International, Inc.
  2.                   All Rights Reserved.
  3.  
  4.  
  5.              RUNNING dBASE DOS APPLICATIONS
  6.              ------------------------------
  7.  
  8.  
  9. Most dBASE III PLUS and dBASE IV programs run in BladeRunner
  10. with no changes required to the source code. However, some 
  11. more complex applications may require a few enhancements. 
  12. This paper points out topics that may affect your programs.
  13.  
  14. Contents
  15. --------
  16. I.    Preparation
  17. II.   Supported File Types
  18. III.  Configuration for Windows
  19. IV.   Language Enhancements
  20. V.    Non-operational Commands and Functions
  21. VI.   Printer Driver References
  22. VII.  Data Formatting Defaults
  23. VIII. Conflicts with Windows Keystrokes
  24. IX.   Error Code Differences
  25.  
  26. Preparation
  27. -----------
  28.  
  29. Before running your dBASE DOS application in Bladerunner,
  30. you should:
  31.  
  32. 1. Become familiar with the Bladerunner application
  33. environment.  This paper (and others included with this
  34. Alpha release) will help you with this type of information,
  35. but you'll also want to explore Bladerunner to learn as
  36. much as you can.
  37.  
  38. 2. Check that the application files you bring over include
  39. just dBASE source code files, tables, and other associated
  40. dBASE file types.
  41.  
  42. 3. Update your Bladerunner DBASEWIN.INI configuration file,
  43. if necessary, to better support your application (you'll
  44. find more on this subject below).
  45.  
  46. 4. Look for certain language enhancements that may affect
  47. your application's behavior and update your source code if
  48. necessary (this is also discussed below).
  49.  
  50. Supported File Types
  51. --------------------
  52.  
  53. Bladerunner reads your dBASE III PLUS and dBASE IV source
  54. code files and compiles them into a new object file format
  55. with the .PRO extension.
  56.  
  57. Bladerunner uses the same file formats for tables and
  58. indexes (.DBF, .DBT, .MDX, .NDX) as dBASE IV.  Bladerunner
  59. also supports .PRG and .FMT source code files.
  60.  
  61. Configuration for Windows
  62. -------------------------
  63.  
  64. The Windows environment provides standard resources, such as
  65. printer and screen drivers, that Windows applications share.
  66. Bladerunner also supports these drivers, making it easy for
  67. you to write device-independent applications.
  68.  
  69. Some dBASE DOS applications rely on specific settings in the
  70. CONFIG.DB configuration file, but Bladerunner doesn't read
  71. CONFIG.DB.  Instead, Bladerunner uses an .INI file,
  72. DBASEWIN.INI, for configuration.  If your application relies
  73. on CONFIG.DB settings, you may need to adjust your code or
  74. add equivalent settings to DBASEWIN.INI.
  75.  
  76. Some CONFIG.DB settings have equivalents in DBASEWIN.INI,
  77. but most are unnecessary in the Windows environment; or, you
  78. set them through the Windows Control Panel instead of in
  79. CONFIG.DB, AUTOEXEC.BAT, CONFIG.SYS, or a special-purpose
  80. DOS batch file.
  81.  
  82. Here are some CONFIG.DB settings, and their Bladerunner
  83. equivalents.
  84.  
  85. CONFIG.DB Setting   Bladerunner Equivalent
  86. ---------------------------------------------------------
  87. PRINTER             Set by Windows printer driver.
  88. PDRIVER             Set by Windows printer driver.
  89. PRINTER FONT        Set in [Font] section of .INI file
  90.  
  91. Language Enhancements
  92. ---------------------
  93.  
  94. Several Bladerunner language elements have been enhanced to
  95. better suit the Windows environment.  Please review the
  96. online Language Reference provided with this Alpha release
  97. for more information.
  98.  
  99. Non-operational Commands and Functions
  100. --------------------------------------
  101.  
  102. Some dBASE commands and functions are inapplicable in the
  103. Windows environment.  Bladerunner simply ignores these
  104. commands, without generating errors.
  105.  
  106. Here is the current list of non-operational (no-op) language
  107. elements:
  108.  
  109. ASSIST
  110. CALL
  111. CALL()
  112. CREATE APPLICATION
  113. DEXPORT
  114. DGEN()
  115. DISPLAY HISTORY
  116. DOSINT         
  117. FIXED()
  118. HIDE MOUSE     
  119. IN()           
  120. INTRO          
  121. ISMARKED()
  122. LIST HISTORY
  123. LOAD
  124. MODIFY APPLICATION
  125. OUT           
  126. RELEASE MODULES
  127. RESET
  128. SET
  129. SET ADL       
  130. SET CLOCK
  131. SET CLOCK TO
  132. SET COMPATIBLE 
  133. SET CURSOR
  134. SET CURSORMOVE 
  135. SET DBTRAP
  136. SET DEBUG
  137. SET DISPLAY
  138. SET GRAPHPRINT 
  139. SET HISTORY
  140. SET HISTORY TO
  141. SET HOURS
  142. SET INSTRUCT
  143. SET MOUSE
  144. SET PAUSE
  145. SET PROMPT    
  146. SET RETRACE   
  147. SET SCOREBOARD
  148. SET SQL
  149. SET SWAPPING  
  150. SET TITLE
  151. SHOW MOUSE   
  152.  
  153. Printer Driver References
  154. -------------------------
  155.  
  156. If your program references dBASE IV printer driver (.PR2)
  157. files by setting the _pdriver system memory variable, you
  158. need to update the variable with the corresponding Windows
  159. printer driver.  The Language Reference entry for _pdriver
  160. describes the new syntax.  The following example shows how
  161. to update the _pdriver syntax for a popular laser printer.
  162.  
  163. Change
  164.  
  165.       _pdriver = HPLAS260.PR2
  166.  
  167.       to
  168.  
  169.       _pdriver = "HPPCL", "HP Laser Jet Series II"
  170.  
  171. The _pdriver variable is the only print-related system
  172. memory variable you need to change.
  173.  
  174. You should also read the Alpha paper titled "Streaming
  175. Output in Bladerunner" for more information on printing.
  176.  
  177. Data Formatting Defaults
  178. ------------------------
  179.  
  180. Bladerunner has defaults for date, time, and number
  181. formatting, which affect these SET commands:
  182.  
  183.       CENTURY
  184.       CURRENCY
  185.       DATE
  186.       MARK
  187.       POINT
  188.       SEPARATOR
  189.       TIME
  190.  
  191. Bladerunner gets these settings from the Windows Control
  192. Panel.
  193.  
  194. Settings in the DBASEWIN.INI file override the Control Panel
  195. defaults.  If your program relies on specific formatting,
  196. set the values in the .INI file, or issue the necessary SET
  197. commands in your program.
  198.  
  199. Conflicts with Windows Keystrokes
  200. ---------------------------------
  201.  
  202. Certain keystroke combinations are common to all Windows
  203. applications. For instance, Alt-F4 closes the active window
  204. or dialog box.  Your application should not map other
  205. behavior to these reserved key combinations.
  206.  
  207. Error Code Differences
  208. ----------------------
  209.  
  210. Several runtime error numbers have changed.  These changes
  211. are unavoidable in transitioning to the Windows environment.
  212. If your program traps specific runtime error numbers, you
  213. may need to update them.
  214.  
  215.